<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<%@ include file="/app/include.jsp"%>
	</head>
	<body>
		<div class="right_content">
			<ul class="breadcrumb">
				<li>
					数据管理
					<span>/</span>
				</li>
				<li class="active">
					样本管理
				</li>
			</ul>
			<div class="list-wrap">
				<form id="queryForm" name="queryForm" action="${pageContext.request.contextPath}/data/loadResearchList.do">
					<div class="pull">
						<div class="pull-left">
							问卷标题&nbsp;<input id="surveyname" name="surveyname" type="text" style="width: 240px;" value="${surveyname}"/>
							答题人姓名&nbsp;<input id="answername" name="answername" type="text" style="width: 240px;" value="${answername}"/>
						</div>
						<div class="pull-right">
							<input type="button" class="btn btn-primary" value="查询" onclick="Page.queryPage();"/>
							<input type="button" class="btn btn-primary" value="重置" onclick="Page.clearForm();"/>
						</div>
					</div>
				</form>
				<div class="table-wrap">
					<table border="0" cellpadding="0" cellspacing="0" class="list">
						<thead>
							<tr>
								<th style="width: 8%">序号</th>
								<th>问卷标题</th>
								<th style="width: 10%">答题人姓名</th>
								<th style="width: 8%">性别</th>
								<th style="width: 8%">年龄</th>
								<th style="width: 12%">移动电话</th>
								<th style="width: 20%">创建时间</th>
								<th style="width: 10%">调研员</th>
								<th style="width: 10%">操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="result" items="${page.list}" varStatus="status">
							<tr>
								<td>${status.index + 1 }</td>
								<td>${result[1].name}</td>
								<td>${result[0].name}</td>
								<td>${result[0].sex}</td>
								<td>${result[0].age}</td>
								<td>${result[0].mobilephone}</td>
								<td>${open:format(result[0].createtime,"yyyy-MM-dd hh:mm:ss")}</td>
								<td>${result[0].researchname}</td>
								<td>
									<a href="javascript:void(0);" onclick="window.open('${pageContext.request.contextPath}/data/viewResearch.do?researchuuid=${result[0].researchuuid}&surveyuuid=${result[1].surveyuuid}');">查看</a>
								</td>
							</tr>
							</c:forEach>
							<c:if test="${fn:length(page.list) == 0}">
								<tr>
									<td colspan=9 align="center"><font color=red><strong>没有可用的调研问卷信息！</strong></font></td>
								</tr>
							</c:if>
						</tbody>
					</table>
				</div>

				<!--分页开始-->
				${page.operate }
				<!--/分页结束-->
			</div>
		</div>
	</body>
</html>